package com.example.blog.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.blog.entity.MainMenu;
import com.example.blog.entity.Query;
import com.example.blog.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TestMapper extends BaseMapper<User> {

    String sql = "select * from user_table";

    @Select(sql)
    Page<User> testPage(Page page);

    Page<User> testPageXmlQuery(Page page, @Param("ew") QueryWrapper queryWrapper);
}
